#define _CRT_SECURE_NO_WARNINGS 1


#include <stdio.h>

int main()
{
	int n = 0;
	scanf("%d", &n);
	getchar();
	char ch[1000] = "0";
	int i = 0;
	while(scanf("%c",&ch[i++]) != EOF)
	{
		getchar();

		if (ch[i] + n >= 'z')
		{
			printf("%c", ch[--i] + n - 26);
		}
		else
		{
			printf("%c", ch[--i] + n);
		}		
	}
	return 0;
}





#include <string.h>

int main()
{
	char ch[10000] = "0";
	int n = 0;
	scanf("%d", &n);
	scanf("%s", &ch);
	int len = strlen(ch);
	for (int i = 0; i < len; i++)
	{
		if (ch[i] + n > 'z')
		{
			ch[i] -= 26;
		}
		printf("%c", ch[i] + n);
	}
	return 0;
}